package com.java.exer1;

/**
 * 练习题一：
 *
 * @author shkstart
 * @create 2021-01-05 11:11
 */
public class StringTest_1 {
    String str = new String("good");
    char[] ch = {'t', 'e', 's', 't'};

    public void change(String str, char[] ch) {
        str = "test ok";
        ch[0] = 'b';
    }

    public static void main(String[] args) {
        StringTest_1 s1 = new StringTest_1();
        s1.change(s1.str, s1.ch);

        System.out.println(s1.str + "and");//goodand
        System.out.println(s1.ch);      //best
    }
}
